#include "computer.h"

#include <stdio.h>
#include <assert.h>

int main()
{
    int a = 0;
    int b = 0;
    int c = 0;

    // client buy a computer
    CComputer * computer = new CComputer();

    computer->my_output("Current Version 1.0 (2024-10-30) \n");

    while (true)
    {
        computer->my_output("Please intput two integer number : \n");//输出信息
        computer->my_input(&a, &b);//接收输入的两个整数

        c = computer->add();
        computer->my_output(a, '+', b, c);

        c = computer->sub();
        computer->my_output(a, '-', b, c);

        c = computer->mul();
        computer->my_output(a, '*', b, c);

        c = computer->div();
        computer->my_output(a, '/', b, c);
    }

    delete computer;

    return 0;
}
